import Vue from "vue";
import moment from "moment/moment";

moment.locale('zh-cn')

Vue.filter('relativeTime', (data) => {
    return moment(data, "YYYYMMDD").fromNow()
})